package com.springbootweb.client;

import com.springbootsys.entity.Menu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(qualifier = "menuClient", name = "springboot-sys",path = "/menu")
public interface MenuClient{
    @GetMapping("getMenusByUserId")
     List<Menu> getMenusByUserId(@RequestParam("userId") Integer userId);
}
